import { objectToData } from './utils.js'

export default request => ({
	DrawnApi: {
		// 根据应用业务流程Id 获取表单信息
		getFormInfoByNodeId: data => request( objectToData("/onlcode/project/process/queryProcessNode", data) ),
		// 更具formId查询module
		getActionModuleList: data => request( objectToData("/onlcode/form/queryFormActionList", data) ),
		// 获取已绑定规则
		bindRuleList: data => request( objectToData("/onlcode/project/process/queryBindActionRule", data) ),
		// 所有规则
		getRuleList: data => request( objectToData("/onlcode/project/process/queryRuleList", 'get' , data) ),
		// 绑定规则
		bindRule: data => request( objectToData("/onlcode/project/process/bindActionRule" , data) ),
	},


})